
#import "EZ_WrapperSample.h"
#include "G15SysInfo.h"

@implementation EZ_WrapperSample

- (id) init
{
    self = [super init];
    if (self != nil) 
    {//initialise monchrome and color controls
        mSampleObject = new G15SysInfo();
        mSampleObject->OnInitDialog();
    }
    return self;
}


-(void)awakeFromNib
{
    //display the performance for every second.
    mTimer= [NSTimer scheduledTimerWithTimeInterval:0.33
                                             target:self
                                           selector:@selector(timerFired:)
                                           userInfo:nil 
                                            repeats:YES];   
}

-(void)timerFired:(NSTimer*)inTimer
{
    mSampleObject->OnTimer();
}
@end
